<%@ page import="model.Student" %><%--
  Author: LZN
  Date: 2023/3/13 0013 13:17
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    Student student = (Student) request.getAttribute("studentList");
%>
<link rel="stylesheet" type="text/css" href="bootstrap-3.3.7-dist/css/bootstrap.css">
<script type="text/javascript" src="jquery-3.2.1/jquery-3.2.1.js"></script>
<script type="text/javascript" src="bootstrap-3.3.7-dist/js/bootstrap.js"></script>
<html>
<head>
    <title>Title</title>
</head>
<body background="img/update1.jpg">
<h2 align="center" style="margin: 50px 80px; color: salmon; font-family: cursive;"> 更新学生信息</h2>
<form action="UpdateStudentServlet" method="post">
    <table align="center" border="1">
        <tr>
            <td>学生学号:</td>
            <td><input type="text" name="studentNo" value="<%=student.getStudentNo()%>"/></td>
        </tr>
        <tr>
            <td>姓名:</td>
            <td><input type="text" name="name" value="<%=student.getName()%>"/></td>
        </tr>
        <tr>
            <td>性别:</td>
            <td><input type="text" name="sex" value="<%=student.getSex()%>"/></td>
        </tr>
        <tr>
            <td>年龄:</td>
            <td><input type="text" name="age" value="<%=student.getAge()%>"/></td>
        </tr>
        <tr>
            <td>班级:</td>
            <td><input type="text" name="banji" value="<%=student.getBanji()%>"/></td>
        </tr>
        <tr>
            <td>出生日期:</td>
            <td><input type="date" name="bornDate" value="<%=student.getBornDate()%>"/></td>
        </tr>
        <tr>
            <td>电话:</td>
            <td><input type="text" name="phone" value="<%=student.getPhone()%>"/></td>
        </tr>
        <tr>
            <td>专业:</td>
            <td><input type="text" name="major" value="<%=student.getMajor()%>"/></td>
        </tr>
        <tr>
            <td>院系:</td>
            <td><input type="text" name="faculty" value="<%=student.getFaculty()%>"/></td>
        </tr>
        <tr>
            <td>地址:</td>
            <td><input type="text" name="address" value="<%=student.getAddress()%>"/></td>
        </tr>
    </table>
    <br>
    <center>
        <div class="providerAddBtn">
            <input type="submit" value="更新" class="btn btn-primary"/>
            <input type="button" value="返回" class="btn btn-primary" onclick="history.back(-1)"/>
        </div>
    </center>
</form>
</body>
</html>
